package com.ibeeking.found.uaa.cp.service;

import com.ibeeking.found.uaa.cp.model.CpAuthModel;
import com.ibeeking.found.uaa.cp.model.SmsCodeModel;
import com.ibeeking.found.uaa.cp.model.CpUserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;

/**
 * @Author ibeeking
 */
public interface ICpUserDetailsService extends UserDetailsService {

    /**
     * 手机号登录
     *
     * @return
     */
    CpUserDetails loadUserByPhoneAndSmsCode(SmsCodeModel smsCodeModel);

    /**
     * 微信小程序登录
     *
     * @param cpAuthModel
     * @return
     */
    CpUserDetails cpAuthLogin(CpAuthModel cpAuthModel);
}
